#ifndef SPRAY_ALGO_HEADER
#define SPRAY_ALGO_HEADER

typedef enum SprayAlarmType{
	spray_none, /* 无 */
	spray_haze, /* 喷雾*/
	spray_water /* 水柱*/
}SprayAlarmType;

typedef struct SprayResult{
	SprayAlarmType type;
	int numerator;
	int totalNum0;
	int totalNum1;
	int constantNumber;
} SprayResult;

void spraySetRoi(int* roi, int len);

/* data: input image only use Y component */
SprayResult* sprayCalculaton(unsigned char* data, int width, int height, int binaryThLow, int warnTh);
void sprayFreeResult(SprayResult* output);
void sprayFree();
#endif